package yxy.game.pm2.bean.module.rank;

import yxy.game.pm2.bean.area.AreaBean;

import java.util.ArrayList;

public abstract class PlayerRankModule extends AreaRankModule implements IWorshipableRank {
	private static ArrayList<String> rankNames = new ArrayList<>();
	private RankWorship worship;

	//个人参与带排名玩法的所有玩法名字，仅限用于玩家个人数据
	public static ArrayList<String> getAllRankNames(){
		if (rankNames.size() == 0) {
			//!!!只能在最后添加，否则就会出现错误
			rankNames.add(0, "ARENA");//0 竞技场
			rankNames.add(1, "CHIBI");//1
			rankNames.add(2, "CONQUEST");//2 征战
			rankNames.add(3, "GUARD");//3
			rankNames.add(4, "INFINITE");//4 //神将试炼
			rankNames.add(5, "KOWKING");//5
			rankNames.add(6, "PLAINSARENA");//6
			rankNames.add(7, "LEVEL");//7
			rankNames.add(8, "POWER");//8 战力
			rankNames.add(9, "SOLORIDE");//9 千里单骑
			rankNames.add(10, "STAIRWAY");//10
			rankNames.add(11, "TOWER");//11
			rankNames.add(12, "BOSSRANK");//12
			rankNames.add(13, "WORLDBOSS");//13
			rankNames.add(14, "WUCHAO");//14
			rankNames.add(15, "ACTIVE");//15
			rankNames.add(16, "YILINGBATTLE");//16
			rankNames.add(17, "THERIONHUNTING");//17
			rankNames.add(18, "WEIGUOTA");//18
			rankNames.add(19, "SHUGUOTA");//19
			rankNames.add(20, "WUGUOTA");//20
			rankNames.add(21, "QUNGUOTA");//21
			rankNames.add(22, "PLAINSCRAFT");//22
			rankNames.add(23, "PASSBARRIER");//23  斩关夺隘
			rankNames.add(24, "MATCHONLINE");//24  在线玩家匹配
		}

		return rankNames;
	}

	public PlayerRankModule(AreaBean areaBean) {
		super(areaBean);
		worship = new RankWorship(rankKey(), rankName());
		initInfo();
	}

	@Override
	public RankWorship getWorship() {
		return worship;
	}

}
